@extends('home.base.index')

@section('content')
    
    <!--内容开始-->
    	<!--筛选结果-->
    <div class="screening-results w1200">
    	<p class="tiao">找到共{{$count}}条</p>
    	<div class="results">
        	<p class="re-p1 f-l">
            	
            </p>
            <div class="re-search f-l">
            	 <form action="/home/search" method="get">
                <input type="text" name="name" placeholder="请输入商品名称" />
                <button></button>
            </form>
                <div style="clear:both;"></div>
            </div>
            
            <div style="clear:both;"></div>
        </div>
    </div>
    
        <!--品牌热销-->
    <div class="brand-sales">
    	
        <dl style="border-bottom:none;">
            <dt>大家都在选</dt>
            <dd>
                @foreach($sall as $a)
                <a href="/home/search/{{$a->id}}" >{{$a->name}}</a>
                @endforeach
            </dd>
            <div style="clear:both;"></div>
        </dl>
    </div>
    
    <!--内容↓↑-->
    <div class="shop-page-con w1200">
    	<div class="shop-pg-left f-l" style="width:215px">
            <div class="shop-left-buttom" style="margin-top:0;">
            	<div class="sp-tit1">
                    <h3>商品推荐</h3>
                </div>
                <ul class="shop-left-ul">
                	@foreach($rec as $v)
                    <li>
                        <div class="li-top">

                            <a href="/home/index/{{$v->product_id}}" class="li-top-tu"><img src="{{asset('images').'/'.$v->picture}}" /></a>
                            <p class="jiage"><span class="sp1">￥{{$v->lower_price}}</span><span class="sp2">￥{{$v->fixed_price}}</span></p>
                        </div>
                        <p class="miaoshu">{{$v->name}}</p>
                        <div class="li-md">
                            <div class="md-l f-l">
                                <p class="md-l-l f-l" ap="">1</p>
                                <div class="md-l-r f-l">
                                    <a href="JavaScript:;" class="md-xs" at="">∧</a>
                                    <a href="JavaScript:;" class="md-xx" ab="">∨</a>
                                </div>
                                <div style="clear:both;"></div>
                            </div>
                            <div class="md-r f-l">
                                <a href="/home/index/{{$v->product_id}}" ><button class="md-l-btn1">立即购买</button>
                                
                            </div>
                            <div style="clear:both;"></div>
                        </div>
                        
                        <p class="weike">当当自营</p>
                    </li>
                    @endforeach
                   
                </ul>
            </div>
        </div>
    	<div class="shop-pg-right f-r">
        	<div class="shop-right-cmp" style="margin-top:0;">
            	<ul class="shop-cmp-l f-l">
                	<li class="current"><a href="#">综合 ↓</a></li>
                	<li><a href="#">销量 ↓</a></li>
                	<li><a href="#">新品 ↓</a></li>
                	<li><a href="#">评价 ↓</a></li>
                    <div style="clear:both;"></div>
                </ul>
                <div class="shop-cmp-m f-l">
                	<span>价格</span><input type="text" /><span>-</span><input type="text" />
                </div>
                <div class="shop-cmp-r f-l">
                	<ul class="f-l">
                    	<li>
                        	<input type="checkbox" name="hobby" value=""></input>
                            <span>包邮</span>
                        </li>
                        <li>
                        	<input type="checkbox" name="hobby" value=""></input>
                            <span>进口</span>
                        </li>
                        <li>
                        	<input type="checkbox" name="hobby" value=""></input>
                            <span>仅显示有货</span>
                        </li>
                        <li>
                        	<input type="checkbox" name="hobby" value=""></input>
                            <span>满赠</span>
                        </li>
                        <li>
                        	<input type="checkbox" name="hobby" value=""></input>
                            <span>满减</span>
                        </li>
                        <div style="clear:both;"></div>
                    </ul>
                    <button>确定</button>
                </div>
                <div style="clear:both;"></div>
            </div>
            <div class="shop-right-con">
            	<ul class="shop-ul-tu shop-ul-tu1">
                @foreach($list as $v)
                	<li>
                        <div class="li-top">
                            <a href="/home/index/{{$v->id}}" class="li-top-tu"><img src="{{asset('images').'/'.$v->big_picture}}" width="150px" height="180px" /></a>
                            <p class="jiage"><span class="sp1">￥{{$v->lower_price}}</span><span class="sp2">￥{{$v->fixed_price}}</span></p>
                        </div>
                        <p class="miaoshu">{{$v->name}}</p>
                        <div class="li-md">
                            <div class="md-l f-l">
                                <p class="md-l-l f-l" ap="">1</p>
                                <div class="md-l-r f-l">
                                    <a href="JavaScript:;" class="md-xs" at="">∧</a>
                                    <a href="JavaScript:;" class="md-xx" ab="">∨</a>
                                </div>
                                <div style="clear:both;"></div>
                            </div>
                            <div class="md-r f-l">
                                <a href="/home/index/{{$v->id}}"<button class="md-l-btn1">立即购买</button>
                                
                            </div>
                            <div style="clear:both;"></div>
                        </div>
                        
                        
                    </li>
                    @endforeach
                    
                    
                    <div style="clear:both;"></div>
                </ul>
                
                 {{ $list->links() }}
            </div>
        </div>
        <div style="clear:both;"></div>
    </div>
    
   @stop
